package com.onlineclass.onlineclassmanagement.controller;

import com.onlineclass.beas.ResultObject;
import com.onlineclass.onlineclassmanagement.feign.GetSchoolFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Schoolname")
public class SchoolController {


    @Autowired
    GetSchoolFeign getSchoolFeign;

    @RequestMapping("/getSchool")
    public ResultObject getSchoolName(){
       ResultObject school = getSchoolFeign.getSchoolName();
       return school;
    }
}
